package com.ruoyi.edu.domain.vo;

import java.math.BigDecimal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;
import java.util.List;


/**
 * 课程视图对象 edu_course
 *
 * @author ruoyi
 * @date 2022-08-18
 */
@Data
@ExcelIgnoreUnannotated
public class EduCourseVo {

    private static final long serialVersionUID = 1L;

    /**
     * 课程ID
     */
    @ExcelProperty(value = "课程ID")
    private String id;

    /**
     * 课程讲师ID
     */
    @ExcelProperty(value = "课程讲师ID")
    private String teacherId;

    /**
     * 课程专业ID
     */
    @ExcelProperty(value = "课程专业ID")
    private String subjectId;

    /**
     * 课程专业父级ID
     */
    @ExcelProperty(value = "课程专业父级ID")
    private String subjectParentId;

    /**
     * 课程标题
     */
    @ExcelProperty(value = "课程标题")
    private String title;

    @ExcelProperty(value = "课程专业名称")
    private String titleS;
    @ExcelProperty(value = "课程专业父名称")
    private String titleSP;
    /**
     * 课程销售价格，设置为0则可免费观看
     */
    @ExcelProperty(value = "课程销售价格，设置为0则可免费观看")
    private BigDecimal price;

    /**
     * 总课时
     */
    @ExcelProperty(value = "总课时")
    private String lessonNum;

    /**
     * 课程封面图片路径
     */
    @ExcelProperty(value = "课程封面图片路径")
    private String cover;

    /**
     * 销售数量
     */
    @ExcelProperty(value = "销售数量")
    private String buyCount;

    /**
     * 课程状态 Draft未发布  Normal已发布
     */
    @ExcelProperty(value = "课程状态 Draft未发布  Normal已发布", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "edu_course_status")
    private String status;

    private String url;
    private String name;
    private String description;

    private List<EduChapterVo> children;

    private String courseId;


}
